//    Copyright (C) Kherty.  All rights reserved.
using System.Collections.Generic;
using OpenLS.Spreadsheet.Formats.Biff.Records;

namespace OpenLS.Spreadsheet.Formats.Biff
{
    internal class FormattedString : SharedString
    {
        private readonly List<FormatRun> _runs;

        public FormattedString(string value, IEnumerable<FormatRun> runs) : base(value)
        {
            _runs = new List<FormatRun>();
            foreach (FormatRun run in runs)
            {
                _runs.Add(run);
            }
        }

        public List<FormatRun> Runs
        {
            get { return _runs; }
        }
    }
}